{% extends "layout.html" %}
{% block content %}
  {% if calendar.name %} <h2><i class = "icon-calendar"></i>{{ calendar.name }}</h2> {% endif %}
  {% if calendar.id %} ( ID {{ calendar.id }} ) {% endif %}
  ( {% if calendar.public %} <i class = "icon-eye-open"></i>&nbsp;Publiek {% else %} <i class = "icon-eye-close"></i>&nbsp;Prive {% endif %} )
  {% if calendar.url %} ( <i class = "icon-globe"></i><a href = "{{ calendar.url }}">&nbsp;URL</a> ) {% endif %} <br/>
  <br/>
  <br/>
  <ul class='nav'>
    {% for event in calendar.events %}
      <li><a href="{{ url_for('show_event', ev_id=event.id, cal_id=calendar.id) }}">{{ event.id }} : {{ event.title }}</a> Omschrijving: {{ event.description }}
          <br/><br/><!-- {{ event }} -->
    {% else %}
      <li><em>No events!</em>
    {% endfor %}
  </ul> 
{% endblock %}